//
//  NativeUtils.m
//  test
//
//  Created by 明日虫洞 on 2024/6/16.
//

#import "NativeUtils.h"
#import <UIKit/UIKit.h>

@implementation NativeUtils
extern "C" {
    void setVibrator(float Intensity) {
        NSLog(@"设置震动强度:%f",Intensity);
        UIImpactFeedbackGenerator* generator;
        generator = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleHeavy];
        [generator impactOccurred];
    }
}
@end
